package com.task.test;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject: task_admin
 * @BelongsPackage: com.task.test
 * @Author: LiuZhe
 * @Date: 2021/5/15 13:24
 * @Description: TODO
 */
@Component
@PropertySource("classpath:test.properties")
@ConfigurationProperties(prefix = "test")
@Data
public class MyProperties {

    private int id;
    private String name;

}
